﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MJTop.FZhan
{
    /// <summary>
    /// jq选择器表达式 与 特性 组成的 键值对
    /// </summary>
    public class ExpressionAttrs : NameValueCollection
    {
        public override void Add(string name, string value)
        {
            if (string.IsNullOrWhiteSpace(name) || string.IsNullOrWhiteSpace(value))
            {
                return;
            }
            base.Add(name, value);
        }

        public new string this[string name]
        {
            get
            {
                return this[name];
            }
            set
            {
                if (!string.IsNullOrWhiteSpace(name))
                {
                    this[name] = value;
                }
            }
        }
    }
}
